</div> 
<table cellpadding="0" cellspacing="0"> 
    <tr valign="top"> 
        <td style="padding:10px 10px 0 14px"> 
		<a href="/"><img src="<?=$config["logo_small"]?>" title="<?=$config["site_name"]?>" alt="<?=$config["site_name"]?>"></a>
        </td>
        <td style="padding-top:22px;padding-left:9px"> 
			<?=$search_box?>
			<div class="small" style="padding:5px 11px;background:#F8F8F8;margin-bottom:3px"> 
			    <div class="al" style="float:right;"> 
			        <img src="/images/feed-small.png" alt="<?=$lang["feed"]?>" width="16" height="16" style="vertical-align:middle"> 
			        <a href="<?=get_rewrite_url("/search.php?word=$word&type=rss", $config["rewrite"])?>" title="<?=$lang["feed"]?>" rel="nofollow"><?=$lang["feed"]?></a> 
			    </div>
			    <?php if($results) {?> 
                <?=str_replace(array("{total}", "{word}", "{start}", "{end}", "{second}"), array($total, $word, $total ? $start + 1 : 0, $end, $second), $lang["results"]);?>
                <?php } else {?>
                &nbsp;
                <?php } ?>
            </div>
        </td> 
    </tr> 
</table> 

<table cellpadding="0" cellspacing="0" width="100%"> 
    <tr valign="top"> 
		<td class="l"> 
		<?=$left?>
		</td> 
        <td class="r"> 
			<table cellspacing="0" cellpadding="0">
				<?php
				if($results == false || $total == 0) {
				?>
				<td style="padding-bottom:7px;" align="center">
				<?=str_replace("{keyword}", $word, $lang["not_found"])?>
				</td>
				<?php	
				} else {
					foreach($results->data as $item) {
				?>
        		<tr valign="top"> 
          			<td style="padding-bottom:7px;"> 
            			<div class="search-item"> 
	              			<h3> 
	                		<a href="<?=get_rewrite_url("/detail.php?fid=".$item->fid, $config["rewrite"])?>" style="font-size:medium;" class="highlight-item">
	                		<?=$item->name?>
	                		</a>
	              			</h3>
	              			<div class="al"> 
				                <img src="<?=$item->icon?>" alt="<?=$item->site?>"> 
				                <span><b class="fs"><?=$item->site?></b>&nbsp;&nbsp;</span> 
				                <span><?=$lang["file_info_type"]?>: <?=$item->type?>&nbsp;&nbsp;</span> 
				                <span><?=$lang["file_info_size"]?>: <?=$item->size?>&nbsp;&nbsp;</span> 
				                <!--<span><?=$lang["file_info_cate"]?>: <b><?=$item->cate?></b>&nbsp;&nbsp;</span>-->
				                <span><?=$lang["file_info_created"]?>: <?=$item->created?>&nbsp;&nbsp;</span> 
				                <span><?=$lang["file_info_checked"]?>: <?=$item->checked?>&nbsp;&nbsp;</span> 
	             			</div>
	             			<?php if($item->source) {?> 
			                <div class="al highlight-item"> 
			                  <?=$lang["file_info_source"]?>: <?=$item->source?>
			                </div> 
			                <div class="highlight-item"> 
			                  <?=$lang["file_info_title"]?>: <?=$item->title?>
			                </div>
			                <?php } ?>
              				<div class="group-holder" style="display:none;">
              					<?php foreach($item->parts as $url) {?>
                  				<div class="url"> 
                   					<a href="<?=get_rewrite_url("/detail.php?fid=".$item->fid, $config["rewrite"])?>" class="url highlight-item" rel="nofollow"><?=$url?></a> 
                  				</div>
                  				<?php } ?>
                				<span class="al">
                					<?php if(count($item->parts) > 3) {?>
                    				<span class="group-show">...&nbsp;&nbsp;
                    				<img src="/images/arrow-down.gif" class="image" alt="<?=$lang["show_links"]?>(<?=count($item->parts)?>)"/> <a><?=$lang["show_links"]?>(<?=count($item->parts)?>)</a> 
                    				</span>
                    				<span class="group-hide">
                    				<img src="/images/arrow-up.gif" class="image" alt="<?=$lang["hide_links"]?>"/><a><?=$lang["hide_links"]?></a>
                    				</span>
                  					<?php } ?>
	                				&nbsp;&nbsp;-&nbsp;&nbsp;
	                  				<a href="<?=get_rewrite_url("/detail.php?fid=".$item->fid, $config["rewrite"])?>"><?=$lang["download"]?></a> 
                				</span>
              				</div>
            			</div>
				  </td>
				</tr> 
	      		<?php 
					}
				}
	      		?>
			</table> 
		</td> 
		</tr>
		<tr> 
	      <td></td> 
		  <td style="padding-top:10px;" colspan="2"> 
	        <div style="width:750px;" class="ftr"> 
	          <center class="pages"> 
	            <?=$pager?>
	          </center>
	        </div> 
	      	<div style="padding-top:22px;"> 
				<?=$search_box?>
	      	</div> 
	        <div style="width:750px;margin-top:30px;"> 
			<div class="latest"> 
	 			<div class="latest-searches"> 
	    		<b><?=$lang["last_searches"]?></b> 
	    		<ul class="latest">
	    			<?php foreach($last_searches as $keyword) {?>
			        <li> 
			          <a href="<?=get_rewrite_url("/search.php?word=".urlencode($keyword), $config["rewrite"])?>"><?=$keyword?></a> 
			        </li>
			        <?php } ?>
			    </ul> 
	  			</div> 
	  			<div class="latest-downloads"> 
	    		<b><?=$lang["last_downloads"]?></b> 
	    		<ul class="latest">
	    			<?php foreach($last_downloads as $file) {?>
	        		<li> 
	          		<a href="<?=get_rewrite_url("/detail.php?fid=".$file->fid, $config["rewrite"])?>" target="_blank"><?=$file->name?></a>
	        		</li>
	        		<?php } ?>
			    </ul> 
			  </div> 
			</div> 
	        </div>
	    </td> 
	  </tr> 
	  <tr>
	  <td>&nbsp;</td>
	  <td>
	  <br />
	  <br />
	  <div class="ftr" style="width: 750px;" align="center"> 
	  <?=$copyright?>
	  </div>
	  </td>
	</tr>
</table>